b45847
@@ -15,15 +15,14 @@
  */
 package org.springframework.ldap.transaction.compensating.support;
 
-import java.util.List;
-
-import javax.naming.Name;
-
 import org.springframework.ldap.core.DistinguishedName;
 import org.springframework.ldap.core.LdapRdn;
 import org.springframework.ldap.core.LdapRdnComponent;
 import org.springframework.ldap.transaction.compensating.TempEntryRenamingStrategy;
 
+import javax.naming.Name;
+import java.util.List;
+
 /**
  * A {@link TempEntryRenamingStrategy} that moves the entry to a different
  * subtree than the original entry. The specified subtree needs to be present in
@@ -55,6 +54,10 @@
public class DifferentSubtreeTempEntryRenamingStrategy implements
         this.subtreeNode = subtreeNode;
     }
 
+    public DifferentSubtreeTempEntryRenamingStrategy(String subtreeNode) {
+        this(new DistinguishedName(subtreeNode));
+    }
+
     public Name getSubtreeNode() {
         return subtreeNode;
     }
